package com.whq.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.whq.dao.BasicThresholdLogMapper;
import com.whq.entity.BasicThresholdLog;
import com.whq.service.BasicThresholdLogService;

@Service(value = "tdBasicThresholdLogService")
public class BasicThresholdLogServiceImpl implements BasicThresholdLogService {

    @Autowired
    private BasicThresholdLogMapper<BasicThresholdLog>tdBasicThresholdLogMapper;
    
    @Override
    public Integer insertSelective(BasicThresholdLog tdBasicThresholdLog) throws Exception {
           return this.tdBasicThresholdLogMapper.insertSelective(tdBasicThresholdLog);
        }

    @Override
    public Integer insertBatch(List<BasicThresholdLog> tdBasicThresholdLog) throws Exception {
           return this.tdBasicThresholdLogMapper.insertBatch(tdBasicThresholdLog) ;
        }

    @Override
    public Integer deleteByPrimaryKey(Object id) {
            return this.tdBasicThresholdLogMapper.deleteByPrimaryKey(id);
    }

    public Integer deleteBatchByPrimaryKey(List<Object> ids) {
           return this.tdBasicThresholdLogMapper.deleteBatchByPrimaryKey(ids);
    }

    @Override
    public Integer updateByPrimaryKeySelective(BasicThresholdLog tdBasicThresholdLog) {
           return this.tdBasicThresholdLogMapper.updateByPrimaryKeySelective(tdBasicThresholdLog);
    }

    @Override
    public BasicThresholdLog findById(Object id) {
           return (BasicThresholdLog) this.tdBasicThresholdLogMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<BasicThresholdLog> selectByCondition(BasicThresholdLog tdBasicThresholdLog) {
           return (List<BasicThresholdLog>) this.tdBasicThresholdLogMapper.selectByCondition(tdBasicThresholdLog);
    }

    @Override
    public Integer selectCountByCondition(BasicThresholdLog tdBasicThresholdLog) {
           return  this.tdBasicThresholdLogMapper.selectCountByCondition(tdBasicThresholdLog);
    }

}
